//
//  AccountView.swift
//  PhotoLine
//
//  Created by 吴帅 on 2017/11/20.
//  Copyright © 2017年 PhotoLine. All rights reserved.
//

import UIKit

class AccountView: UIView {
    
    lazy var signInButton : UIButton = {
        () -> UIButton in
        let button = UIButton.init(type: UIButtonType.custom)
        button.backgroundColor = ThemeColor;
        button.layer.cornerRadius = 25;
        return button;
    }()
    
    lazy var otherSignButton : UIButton = {
        () -> UIButton in
        let button = UIButton.init(type: UIButtonType.custom)
        button.backgroundColor = ThemeColor;
        button.layer.cornerRadius = 25;
        return button;
    }()

    override init(frame: CGRect) {
        super.init(frame: frame);
        self.backgroundColor = UIColor.white;
        self.addSubview(self.signInButton);
        self.addSubview(self.otherSignButton);
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    override func layoutSubviews() {
        super.layoutSubviews();
        
        self.signInButton.snp.makeConstraints { (make) in
            make.top.equalTo(self).offset(30);
            make.left.equalTo(self).offset(25);
            make.right.equalTo(self.snp.centerX).offset(-10);
            make.height.equalTo(50);
        }
        self.otherSignButton.snp.makeConstraints { (make) in
            make.top.equalTo(self).offset(30);
            make.right.equalTo(self).offset(-25);
            make.left.equalTo(self.snp.centerX).offset(10);
            make.height.equalTo(50);
        }
    }
    
}
